import request from 'umi-request';
export async function queryRule(params) {
  return request('/api/cstCustomers/selectByPage', {
    params,
  });
}
export async function removeRule(params) {
  return request(`/api/cstCustomers/delete/${params.custId}`, {
    method: 'POST',
    data: {  },
  });
}
export async function addRule(params) {
  return request('/api/cstCustomers/add', {
    method: 'POST',
    data: { ...params },
  });
}
export async function updateRule(params) {
  return request('/api/cstCustomers/edit', {
    method: 'POST',
    data: { ...params },
  });
}

export async function enable(params) {
  return request('/api/cstCustomers/enable', {
    method: 'POST',
    data: { ...params },
  });
}

export async function disable(params) {
  return request('/api/cstCustomers/disable', {
    method: 'POST',
    data: { ...params },
  });
}
